<template>
  <div id="login">
    <van-nav-bar title="账号登录" />
    <div class="denglu">
      <!-- 输入账号 -->
      <input
        type="text"
        placeholder="请输入手机号,新账号及默认注册"
        v-model="inputs"
      />
      <div class="verify" @click="verifyClick">
        <span>注册</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      inputs: "",
    };
  },
  methods: {
    verifyClick() {
      localStorage.setItem("token", this.inputs);
      this.inputs = "";
      this.$router.push("/mine");
    },
  },
};
</script>

<style lang="less" scoped>
@import "../../assets/less/login.less";
</style>
